Method: Browser::Database::SQL::Result#[]
- Defined in:
- opal/browser/database/sql.rb
permalink #[](index) ⇒ Row
Get a row from the result.
155 156 157 158 159 160 161 162 163 |
# File 'opal/browser/database/sql.rb', line 155 def [](index) if index < 0 index += length end unless index < 0 || index >= length Row.new(`#@native.rows.item(index)`) end end |